%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Scenario 8.2 Home banking
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Scenario 8.2 Home banking}

This scenario is about the usage of the SAB Online Home banking system. We will split this scenario in eight separate actions to keep an overview.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SAB Online usage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{SAB Online usage}
In the first part we will illustrate how a customer can log in and out from SAB Online, and how the usage of SAB Online happens internally to the \emph{SAB Online} component. See figure \ref{fig:seq_SAB_Online_usage_by_customer} on page \pageref{fig:seq_SAB_Online_usage_by_customer}.

In this illustration, the \texttt{method(Parameter)} calls are replaced by the corresponding methods and parameters that are provided by the used interfaces. The \texttt{Return} object is the corresponding returned object. The \emph{Internal Components} component represents all possible components that can be called.

The use cases touched in this scenario are:
\begin{itemize}
 \item UC1: Log in
 \item UC2: Log off
\end{itemize}



\begin{figure}[!h]
    \centering
        \includegraphics[angle=90, width=0.8\textwidth]{Scenarios/scenario_img/SAB_Online_usage_by_customer.png}
    \caption{SAB Online usage by a customer}
    \label{fig:seq_SAB_Online_usage_by_customer}
\end{figure}





\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Check account overview
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Check account overview}
In the second part we will illustrate in figure \ref{fig:seq_8_2_1Check_account_overview_via_SAB_Online} on page \pageref{fig:seq_8_2_1Check_account_overview_via_SAB_Online} how a customer can view their account overview once they are logged in.

The use case touched in this scenario is UC5: Consult bank account overview.


\begin{figure}[!h]
    \centering
        \includegraphics[width=1.0\textwidth]{Scenarios/scenario_img/8_2_1Check_account_overview_via_SAB_Online.png}
    \caption{Check account overview via SAB Online}
    \label{fig:seq_8_2_1Check_account_overview_via_SAB_Online}
\end{figure}






\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Transfer money from other bank to SAB
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Transfer money from other bank to SAB}
\label{sec:8_2_Transfer_money_other_bank}
In the third part we illustrate how a transfer from an other bank to an SAB account is handled. We split this up into three separate sequence diagrams to keep a good overview. 

Transfers from an other bank to SAB are communicated through SWIFT. The sequence diagram that shows in detail how the incoming SWIFTMessage is handled by SAB can be seen in figure \ref{fig:seq_Incoming_SWIFT} on page \pageref{fig:seq_Incoming_SWIFT}. Here it is shown how an incoming SWIFTMessage is received by the system, translated into a Transaction and send to the \emph{Transaction Processing System}.

If the Transaction is received by the \emph{Transaction Processing System} it is placed into a queue and handled according to its priority. The sequence diagram that shows in detail how the transaction is handled by the \emph{Transaction Processing System} is shown in figure \ref{fig:seq_UC11_Execute_transaction} on page \pageref{fig:seq_UC11_Execute_transaction}.

Once the Transaction is processed by the \emph{Transaction Processing System} a reply is send back to the other bank from where the transaction originated. The sequence diagram that shows in detail how this reply is sent out can be viewed in figure \ref{fig:seq_Outgoing_SWIFT} on page \pageref{fig:seq_Outgoing_SWIFT}.

The use cases touched in this scenario are:
\begin{itemize}
 \item UC25: Process interbank credit instruction
 \item UC11: Execute transaction
\end{itemize}


\begin{figure}[!h]
    \centering
        \includegraphics[width=1.0\textwidth]{Scenarios/scenario_img/Incoming_SWIFT.png}
    \caption{Handling of incoming SWIFTMessage by SAB}
    \label{fig:seq_Incoming_SWIFT}
\end{figure}



\begin{figure}[!h]
    \centering
        \includegraphics[angle=90, width=0.6\textwidth]{Scenarios/scenario_img/UC11_Execute_transaction.png}
    \caption{Transaction execution by the Transaction Processing System}
    \label{fig:seq_UC11_Execute_transaction}
\end{figure}


\begin{figure}[!h]
    \centering
        \includegraphics[width=1.0\textwidth]{Scenarios/scenario_img/Outgoing_SWIFT.png}
    \caption{Handling of outgoing SWIFTMessage by SAB}
    \label{fig:seq_Outgoing_SWIFT}
\end{figure}





\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Consult transaction history
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Consult transaction history}
In the fourth part we illustrate in figure \ref{fig:seq_8_2_Check_transaction_history} on page \pageref{fig:seq_8_2_Check_transaction_history} how the customer can consult the transaction history of a selected account.

The use case touched in this scenario is UC6: Consult transaction history of account.

\begin{figure}[!h]
    \centering
        \includegraphics[width=1.0\textwidth]{Scenarios/scenario_img/8_2_Check_transaction_history.png}
    \caption{Consult transaction history}
    \label{fig:seq_8_2_Check_transaction_history}
\end{figure}








\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Issue intrabank transfer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Issue intrabank transfer}
\label{sec:8_2_intrabank_transfer}
In the fifth part we illustrate in figure \ref{fig:seq_8_2_Issue_intrabank_transfer} on page \pageref{fig:seq_8_2_Issue_intrabank_transfer} how a customer can issue an intrabank transfer between two SAB accounts.
Note that once the Transaction is handed to the \emph{Transaction Processing System} it is handled according to the diagram in figure \ref{fig:seq_UC11_Execute_transaction} on page \pageref{fig:seq_UC11_Execute_transaction}.

The use cases touched in this scenario are:
\begin{itemize}
 \item UC9: Issue transfer between two accounts
 \item UC11: Execute transaction
\end{itemize}

\begin{figure}[!h]
    \centering
        \includegraphics[width=1.0\textwidth]{Scenarios/scenario_img/8_2_Issue_intrabank_transfer.png}
    \caption{Issue intrabank transfer}
    \label{fig:seq_8_2_Issue_intrabank_transfer}
\end{figure}





\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Issue interbank transaction
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Issue interbank transaction}
In the sixth part we illustrate in figure \ref{fig:seq_8_2_Issue_interbank_transfer} on page \pageref{fig:seq_8_2_Issue_interbank_transfer} how a customer can issue an interbank transaction. The handling of an invalid IBAN is also included.

Note that once the Transaction is handed to the \emph{Transaction Processing System} it is handled according to the diagram in figure \ref{fig:seq_UC11_Execute_transaction} on page \pageref{fig:seq_UC11_Execute_transaction}. The transmission of the interbank message to the other bank over the SWIFT network is shown in figure \ref{fig:seq_Outgoing_SWIFT} on page \pageref{fig:seq_Outgoing_SWIFT}.

The use cases touched in this scenario are:
\begin{itemize}
 \item UC11: Execute transaction
 \item UC23: Send interbank credit instruction
\end{itemize}


\begin{figure}[!h]
    \centering
        \includegraphics[width=1.0\textwidth]{Scenarios/scenario_img/8_2_Issue_interbank_transfer.png}
    \caption{Issue interbank transfer}
    \label{fig:seq_8_2_Issue_interbank_transfer}
\end{figure}






\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Issue delayed direct credit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Issue delayed direct credit}
In the seventh part we illustrate in figure \ref{fig:seq_8_2_Issue_delayed_direct_credit} on page \pageref{fig:seq_8_2_Issue_delayed_direct_credit} how a customer can issue a delayed direct credit.

The delayed directed credit is delayed by the \emph{Transaction Processing System} until the issue date. At that time the \emph{Transaction Processing System} will process the transaction according to the diagram in figure \ref{fig:seq_UC11_Execute_transaction} on page \pageref{fig:seq_UC11_Execute_transaction}. 

\begin{figure}[!h]
    \centering
        \includegraphics[width=1.0\textwidth]{Scenarios/scenario_img/8_2_Issue_delayed_direct_credit.png}
    \caption{Issue delayed direct credit}
    \label{fig:seq_8_2_Issue_delayed_direct_credit}
\end{figure}







\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set up standing order
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Set up standing order}
In the eight part of this scenario we illustrate in figure \ref{fig:seq_8_2_Set_up_standing_order} on page \pageref{fig:seq_8_2_Set_up_standing_order} how a customer can set up a standing order.

The use case touched in this scenario is UC10: Set up standing order.


\begin{figure}[!h]
    \centering
        \includegraphics[angle=90, width=0.4\textwidth]{Scenarios/scenario_img/8_2_Set_up_standing_order.png}
    \caption{Set up standing order}
    \label{fig:seq_8_2_Set_up_standing_order}
\end{figure}


